home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / A.D. Software / OOFILE / Buildable, limited OOFILE / samples / ooftst08.cpp < prev    next >
C/C++ Source or Header  |  1995-09-27  |  852b  |  28 lines

  1. // Copyright 1994 A.D. Software. All Rights Reserved
  2.  
  3. // OOFTEST8
  4.  
  5. // This sample just tests the dbConnect::raise() method of error reporting.
  6. // which should use a message box on the Windows and Mac environments
  7. // and console output elsewhere
  8.  
  9. #include "oofile.hpp"
  10.  
  11.  
  12. int main()
  13. {
  14.     cout << "Testing" << endl << flush;
  15.     dbConnect::raise( ostrstream() 
  16.        << "This is a longer string to see if I can get the Alert to handle it or not"
  17.        << endl
  18.        << "and just what happens with embedded newlines, also to see if the wrapping works OK "
  19.        << "for very long lines which I am sure are now exceeding the 255 character limit, or "
  20.        << "if not yet will soon be and so it will be interesting to see just what the compiler "
  21.        << "complains of if indeed it does complain!");
  22.     cout << "Finished" << endl << flush;
  23.     
  24.     return EXIT_SUCCESS;
  25. }       
  26.  
  27.  
  28.